import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/taskInspect/listTaskInspect',
    method: 'get',
    params: query
  })
}

export function createArticle(data) {
  return request({
    url: '/taskPlan/addTaskPlan',
    method: 'post',
    data
  })
}

export function deleteArticle(data) {
  return request({
    url: '/taskPlan/deleteTaskPlan',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/taskPlan/updateTaskPlan',
    method: 'post',
    data
  })
}
